package com.yanqu.road.entity.log.admin;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

/**
 * @Author : Cxp
 * @Time : 2025-02-25
 * @Description : 后台删除邮件追回道具日志
 */

@FieldTypeAnnotation(tableName = "t_l_mail_deduct_property", desc = "后台删除邮件追回道具日志", autoSave = true, uploadCk = true)
public class LogMailDeductProperty extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "邮件道具")
    private String needDeduct;

    @FieldTypeAnnotation(desc = "实际扣除道具")
    private String realDeduct;

    @FieldTypeAnnotation(desc = "是否扣负")
    private int isNegative;

    public LogMailDeductProperty(long userId, String needDeduct, String realDeduct, int isNegative) {
        this.userId = userId;
        this.needDeduct = needDeduct;
        this.realDeduct = realDeduct;
        this.isNegative = isNegative;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getNeedDeduct() {
        return needDeduct;
    }

    public void setNeedDeduct(String needDeduct) {
        this.needDeduct = needDeduct;
    }

    public String getRealDeduct() {
        return realDeduct;
    }

    public void setRealDeduct(String realDeduct) {
        this.realDeduct = realDeduct;
    }

    public int getIsNegative() {
        return isNegative;
    }

    public void setIsNegative(int isNegative) {
        this.isNegative = isNegative;
    }
}
